inspector: Use event controller names
authorMatthias Clasen <mclasen@redhat.com>
Wed, 19 Jun 2019 11:11:06 +0000 (11:11 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Jun 2019 02:48:42 +0000 (22:48 -0400)
Use these in the same place we use widget names.

gtk/inspector/object-tree.c

index efaed00d2b4d4e1d1462546ed184744fb74fd85f..66af2c2fdb719ff78ab5c26132bf51686f8fea8c 100644 (file)
@@ -673,6 +673,11 @@ gtk_inspector_get_object_name (GObject *object)
         return id;
     }
 
+  if (GTK_IS_EVENT_CONTROLLER (object))
+    {
+      return gtk_event_controller_get_name (GTK_EVENT_CONTROLLER (object));
+    }
+
   return NULL;
 }